package com.aya.simple.listener;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationContextInitializer;
import org.springframework.context.ConfigurableApplicationContext;

public class MySecondApplicationContextInitializer implements ApplicationContextInitializer {
    Logger logger = LoggerFactory.getLogger(MySecondApplicationContextInitializer.class);
    @Override
    public void initialize(ConfigurableApplicationContext applicationContext) {
        logger.info("second init",applicationContext.getEnvironment());
    }
}
